package com.alibaba.csp.sentinel.dashboard.rule;

import com.alibaba.csp.sentinel.dashboard.datasource.entity.rule.RuleEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 动态规则处理器
 *
 * @author slf
 * @since 2024/4/14 20:13
 **/
public interface DynamicRuleHandler {

  <T extends RuleEntity> void publish(String app, Class<T> clazz, List<T> rules);

  <T extends RuleEntity> ArrayList<T> getRules(String app, Class<T> clazz);
}
